import re

text = '12 drummers, 11 pipers, 10 lords, 9 ladies, 8 maids, 7 swans,\
6 geese, 5 rings, 4 birds'
regexExp = r'\d+\s\w+'

# w不含字符，s字符，d数字
xmasRegex = re.compile(regexExp)
result = xmasRegex.findall(text)
print(result)
